$(function () {
    $("#ajaxdata").click(function () {
        var opts = {
            success: function (data) {
                $(location).attr("href", "/DingTalk/SettingController/index");
            },
            error: function (xhr, status, error, form) {
                $(location).attr("href", "/DingTalk/SettingController/index");
            }
        }
            ;
        $('#dosubmit').trigger('ajaxdata', opts)
    })
    $("#reloaddd").click(function () {
        sy.mask();
        url = sy.url('reloaddd');
        sy.post(
            url, {},
            function (data, textStatus, xhr) {
                parent.sy.tip(data.message, data.success);
                sy.unmask();
                if (data.success) {
                    that.reloadGrid();
                    if ($.isFunction(callback)) {
                        callback(data);
                    }
                    if ($.isFunction(opts.complete)) {
                        opts.complete.call(that, data);
                    }
                }
            },
            true,
            function (xhr) {
                sy.responseHandle();
            }
        );

    })

})